package _1抽象类;

public class Circle extends Shape{
	float r;

	public Circle(float r) {
		super();
		this.r = r;
	}
	public String area() 
	{
		
		return name+"的面积："+(Math.PI)*r*r;
		
	}
	public String perimeter() 
	{
		return name+"的周长："+2*(Math.PI)*r;
	}

}
